package com.interrobang.gui;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class ImagePanel extends JPanel 
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1395240057673417253L;
	Image image;
	
	/**
	 * @return the image
	 */
	public Image getImage() {
		return image;
	}

	/**
	 * @param image the image to set
	 */
	public void setImage(Image image) {
		this.image = image;
	}

	public void paint(Graphics g)
	{
		super.paint(g);
		if(image != null)
			g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
	}
}
